package jp.co.rc.mapper;

import jp.co.rc.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    /*
    获取所有用户
     */
    List<User> getAllUser();

    User getUserById(int id);

    int createUser(User user);

    int deleteById(int id);

    int updateById(String name, String password, String id);

    User getUserByData(@Param("name") String name, @Param("password") String password);
}
